/**
  ******************************************************************************
  * File Name          : route_cf_interface.h
  * Description        : Code for data process applications
  ******************************************************************************
  * @attention
  *
  ******************************************************************************
  */

#ifndef __cf_interface_H
#define __cf_interface_H

#include <stdint.h>

typedef enum
{
	ROUTE_PLTYP_CF_ACK   = 0xE2u,  /* 确认回复 无数据 */
  ROUTE_PLTYP_CF_CYCLE = 0xE4u,  /* 主机周期查询及回复 */
  ROUTE_PLTYP_CF_PARA  = 0xE6u,  /* 参数设置 */
  ROUTE_PLTYP_CF_SYNC  = 0xE8u,  /* 数据同步 */
	ROUTE_PLTYP_CF_DOACT = 0xEAu,  /* 控制指令 */
}Route_PlType_CF_Type;

typedef struct
{
  uint8_t  cfkg;
}Cf_ActType;

typedef struct
{
  uint8_t  cftmen;
	uint8_t  dummy1;
	uint16_t cfot;
  uint32_t cftm[6];
}Cf_ParaType;

typedef struct
{
	volatile uint8_t cfkg_st;
	volatile uint8_t cfst;
}Cf_StateType;

typedef struct
{
  uint8_t      hour;
	uint8_t      minute;
	uint8_t      second;
  Cf_StateType state;
  Cf_ParaType  para;
}Cf_SyncType;

#endif /* __cf_interface_H */
